package com.etc.单例模式.静态内部类;

/**
 * @Author 静静
 * @Description
 * @Date 2021/3/7  16:25
 **/
public class Jingjing {

    private Jingjing(){};

    private static class JingjingInstance{
        private static final Jingjing INSTANCE = new Jingjing();
    }

    public static Jingjing getInstance(){
        return JingjingInstance.INSTANCE;
    }

    public  void JingjingInfo(){
        System.out.println("我也很美");
    }
}
